package com.yc.rpc.core;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Configuration
@EnableConfigurationProperties
@ConfigurationProperties(prefix ="yc.rpc.server")
public class RpcServerConfig {

   public String getHost() {
      return host;
   }

   public void setHost(String host) {
      this.host = host;
   }

   public Integer getPort() {
      return port;
   }

   public void setPort(Integer port) {
      this.port = port;
   }

   public String hundunHost = "127.0.0.1";
   public Integer hundunPort = 7777;

   public String getHundunHost() {
      return hundunHost;
   }

   public void setHundunHost(String hundunHost) {
      this.hundunHost = hundunHost;
   }

   public Integer getHundunPort() {
      return hundunPort;
   }

   public void setHundunPort(Integer hundunPort) {
      this.hundunPort = hundunPort;
   }

   private String serverId;

   public String getServerId() {
      return serverId;
   }

   public void setServerId(String serverId) {
      this.serverId = serverId;
   }

   public  String host="127.0.0.1";
   public Integer port  = 8888;

}
